std::multiset::insert
From Cppreference
| iterator insert( const value_type& value );
| (1) | |
| iterator insert( value_type&& value );
| (2) | (C++0x feature) |
| iterator insert( iterator hint, const value_type& value );
iterator insert( const_iterator hint, const value_type& value ); | (3) | (pre-C++0x version) (C++0x version) |
| iterator insert( const_iteravalue_type&& value );
| (4) | (C++0x feature) |
| template <class InputIterator>
void insert( InputIterator first, InputIterator last ); | (5) | |
| void insert( std::initializer_list<value_type> ilist );
| (6) | (C++0x feature) |
Inserts elements to the container.
1-2) inserts value.
3-4) inserts value, using hint as a suggestion where the element should go.
5) inserts elements from range [first, last).
6) inserts elements from initializer list ilist.
Contents |
Parameters
| hint | - | iterator, used as a suggestion as to where to insert the content |
| value | - | element value to insert |
| first, last | - | range of elements to insert |
| ilist | - | initializer list to insert the values from |
Return value
1-2) returns an iterator to the inserted element.
3-4) returns an iterator to the inserted element.
5-6) none.
Complexity
| This section is incomplete |
See also
| constructs element in-place (public member function) | ||
| constructs elements in-place using a hint (public member function) | ||